package com.superhelp.ebill.api.service;

import com.superhelp.ebill.api.ApiConfig;
import com.superhelp.ebill.api.result.LoginResult;

import java.util.Map;

import io.reactivex.Observable;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

public interface LoginService {

    /**
     * @return 登录
     */
    // http://japi.juhe.cn/joke/content/text.from?key=ae240f7fba620fc370b803566654949e
    @FormUrlEncoded
    @POST(ApiConfig.APIURL.URL_LOGIN)
    Observable<LoginResult> login(@FieldMap Map<String, String> fieldMap);


}
